//
//  KiwipenCommand.h
//  BlueToothDemo
//
//  Created by US bike on 2017/8/29.
//  Copyright © 2017年 奇异果. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    CommandTypeError = 0,       //错误
    CommandTypePower,           //发送获取电量命令
    CommandTypeReadUUID,        //发送获取DeviceID数据命令
    CommandTypeWriteUUID,       //发送写入DeviceID数据命令
    
    CommandTypeLED_ALL_RESET,               //发送LED显示命令
    CommandTypeLED_ALL_OFF,                 //发送LED显示命令
    CommandTypeLED_ALL_ON,                  //发送LED显示命令
    CommandTypeLED_ALL_SLOW_FLASHING,       //发送LED显示命令
    CommandTypeLED_ALL_FAST_FLASHING,       //发送LED显示命令
    CommandTypeLED_ALL_BREATHING,          //发送LED显示命令
        
} CommandType;

@interface KiwipenCommand : NSObject

@property (nonatomic, assign) CommandType commandType;
@property (nonatomic, strong) NSData *commandData;

+ (instancetype) CreateCommondWitCommandType:(CommandType) type AndDeviceIdStr:(NSString *) deviceIDStr;

- (NSString *) commandTypeName;
- (NSString *) commandDetail;

@end
